import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import( './views/Home.vue')
    },
    {
      path: '/confirm',
      name: 'confirm',
      component: () => import( './views/Confirm.vue')
    },
    {
      path: '/status',
      name: 'status',
      component: () => import( './views/Status.vue')
    },
    {
      path: '/record',
      name: 'record',
      component: () => import( './views/Record.vue')
    },
    {
      path: '/record-detail',
      name: 'recordDetail',
      component: () => import( './views/RecordDetail.vue')
    },
    { path: '*', redirect: '/' }
  ],
})
